/**
 * 数组的扩展
 */


let array1 = [1,2,3,4,5,6]
let array2 = [7,8,9,10]

let newArray = [ ...array1  ,  ...array2]

console.log("newArray ",newArray);



//数组的结构
let array3 = [100,200,300]
// const a1 = array3[0]
// const a2 = array3[1]
// const a3 = array3[2]

//解构复制
const [a1 , a2,a3] = array3
console.log("a1 ",a1);
console.log("a2 ",a2);
console.log("a3 ",a3);

//解构和 剩余参数整合使用
const [a11,...other] = array3
console.log("a11 ",a11);
console.log("other ",other);
